import {Component} from 'react'
import 'antd/dist/antd.css';
import { 
  BrowserRouter as Router, 
  Route, 
  Switch,
  withRouter,  
} from 'react-router-dom'
// 导入组件
import Page from "./pages"
import Admin from './pages/Admin';

class App extends Component {
  render () {
    return (
      <div className="App">
          <Switch>
            <Route path="/" exact component={Page} />
            <Route path="/admin" exact component={Admin} />
          </Switch> 
      </div>
    );
  }
}

export default App
